package org.finesys.chat.core.base.document.splitter;

import org.finesys.chat.core.base.document.tokenizer.Tokenizer;

public class DocumentSplitters {

    public DocumentSplitters() {

    }

    public static DocumentSplitter recursive(int maxSegmentSizeInTokens, int maxOverlapSizeInTokens, Tokenizer tokenizer) {
        return new DocumentByParagraphSplitter(maxSegmentSizeInTokens, maxOverlapSizeInTokens, tokenizer);
    }

    public static DocumentSplitter recursive(int maxSegmentSizeInTokens, int maxOverlapSizeInTokens) {
        return recursive(maxSegmentSizeInTokens, maxOverlapSizeInTokens, null);
    }
}
